SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.[DnnProduct_CDS_DistributorBillingConfigUpdate]
	@ID int,
	@DistributorID varchar(50),
    @BillingConfigID int,
    @BillingStartDate datetime,
    @TrialAccount bit,
    @TrialAccountDate datetime,
    @ContractDate datetime,
    @ServiceStatement int,
    @AcumenID int,
    @CurrencyID int,
    @ExchangeRate decimal(12, 4),
    @Enabled bit
AS
BEGIN
	UPDATE [DnnProduct_CDS_DistributorBillingConfig]
	SET [DistributorID] = @DistributorID,
      [BillingConfigID] = @BillingConfigID,
      [BillingStartDate] = @BillingStartDate,
      [TrialAccount] = @TrialAccount,
      [TrialAccountDate] = @TrialAccountDate,
      [ContractDate] = @ContractDate,
      [ServiceStatement] = @ServiceStatement,
      [AcumenID] = @AcumenID,
      [CurrencyID] = @CurrencyID,
      [ExchangeRate] = @ExchangeRate,
      [Enabled] = @Enabled
	WHERE [ID] = @ID
END
GO
